<?php
	('Access-Control-Allow-Origin：*');
	// include("../xsdb.class.php");
	include("../config/mysql.php");
	$db = new mysql();
	$name = $_POST["name"];
	$password = $_POST["password"];
	$phone = $_POST["phone"];
	$peopleName = $_POST["peopleName"];
	$time = $_POST["time"];
	$andtime = $_POST["andtime"];
	$reason = $_POST["reason"];
	$company_id = $_POST["company_id"];
	$sql = "INSERT INTO class (name,password,phone,peopleName,time,andtime,reason,company_id) VALUES ('{$name}','{$password}','{$phone}','{$peopleName}','{$time}','{$andtime}','{$reason}',{$company_id})";
	echo $db->Query($sql);
	$db->close();
